﻿Public Partial Class GetAdId
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ' Get Manager
        Dim manager As New DotNetCore.BannerManagement.BLL.AdvertisementManager

        Dim advertisement As DotNetCore.BannerManagement.Domain.dnc_Advertisement = manager.GetNextAdvertisement(Request.QueryString("Zone"))

        Response.ClearHeaders()
        Response.ClearContent()

        Response.Write(advertisement.ID)

        Response.Flush()
        Response.Close()


    End Sub

End Class